package com.clouds.wms.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.clouds.wms.bean.Cmsmi;
import com.clouds.wms.dao.CmsmiDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;
@Service("cmsmiService")
public class CmsmiServiceImpl implements CmsmiService {
	
	@Resource(name="cmsmiDao")
	private CmsmiDao cmsmiDao;
	
	@Override
	public PagesBean getCmsmiListByMhaa(String mhaa,String miaa,int miad, int offset, int pageSize) throws SysException {
		return cmsmiDao.getCmsmiListByMhaa(mhaa,miaa, miad,offset, pageSize);
	}

	@Override
	public Cmsmi getCmsmiByMiaa(String miaa) throws SysException {	
		return cmsmiDao.getCmsmiByMiaa(miaa);
	}

	@Override
	public int saveCmsmi(Cmsmi cmsmi) throws SysException {
		return cmsmiDao.saveCmsmi(cmsmi);
	}

	@Override
	public int updateCmsmi(Cmsmi cmsmi) throws SysException {
		return cmsmiDao.updateCmsmi(cmsmi);
	}

	@Override
	public int updateCmsmiMiag(String miaa, int miag) throws SysException {
		return cmsmiDao.updateCmsmiMiag(miaa, miag);
	}

	@Override
	public List<Cmsmi> getAllCmsmiList(String mhaa, int miag, String ecaa, String ecad, String ecae) throws SysException {
		return cmsmiDao.getAllCmsmiList(mhaa, miag, ecaa, ecad, ecae);
	}

	@Override
	public List<Cmsmi> getCmsmiListByMiaa(String miaa) throws SysException {
		return cmsmiDao.getCmsmiListByMiaa(miaa);
	}

}
